﻿using BCDto.Common.EvaluationTag;
using BCService.Common.EvaluationTag;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BCTMSRESTful.Controllers.DriverApp.EvaluationTag
{
    /// <summary>
    /// 评价标签接口
    /// </summary>
    [ApiExplorerSettings(GroupName = "DriverApp")]
    [Route("api/v1/DriverApp/[controller]")]
    public class EvaluationTagController : DriverAppBaseController
    {
        private readonly IEvaluationTagService evaluationTagService;
        public EvaluationTagController(IEvaluationTagService evaluationTagService)
        {
            this.evaluationTagService = evaluationTagService;
        }

        #region 获取用户评价标签列表
        /// <summary>
        /// 获取用户评价标签列表
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <response code="200">用户评价标签列表</response>
        /// <returns></returns>
        [HttpGet("{user_id}")]
        [ProducesResponseType(typeof(IEnumerable<EvaluationTagDto>), 200)]
        public IActionResult Get([FromRoute(Name = "user_id")] long userId)
        {
            return Ok(this.evaluationTagService.GetInComeUseDtos(userId, null));
        }
        #endregion


    }
}
